﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Soussous.Template.master
{
    public partial class template : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = Request.ServerVariables["URL"];
            string liste = "";

            if (str == "/Template/connexion.aspx" || str == "/Template/subscribe.aspx")
            {
                liste += "<li><a href=\"subscribe.aspx\" >Subscribe</a></li>";
            }
            else
            {
                
                liste += "<li><a href=\"friend.aspx\" >Friends</a></li>";
                liste += "<li><a href=\"note.aspx\" >Notes</a></li>";
                liste += "<li><a href=\"historical.aspx\" >Historical</a></li>";
                liste += "<li><a href=\"logout.aspx\" >Logout</a></li>";
            }
            list_menu.InnerHtml = liste;
        }
    }
}
